#include <iostream>
using namespace std;
 
class Father
{
public:
    Father(){cout<<"contructor Father!"<<endl;};
     ~Father(){cout<<"destructor Father!"<<endl;};
};
 
class Son:public Father
{
public:
    Son(){cout<<"contructor Son!"<<endl;};
    ~Son(){cout<<"destructor Son!"<<endl;};
};
 
int main()
{
//    Father pfather;
	Son son;   

	Son* pFather = new Son();
 delete pFather;
  pFather=NULL;
 printf("delete pFather!\n"); 
    return 0;
}
